From d292398370bff7751b162b0c5046c3d3e1947842 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Tue, 24 Apr 2018 20:09:20 +0100 Subject: [PATCH] deb_ndsphinx_optional Gbp-Pq: Name deb_ndsphinx_optional --- doc/source/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index cf84aca3..aa8d7de6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -64,10 +64,14 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.linkcode', - 'nbsphinx', ] mathjax_path='MathJax.js' +try: + import nbsphinx + extensions += ['nbsphinx'] +except: + pass # survive without exclude_patterns = ['**.ipynb_checkpoints'] -- 2.30.2